<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/12/7 0007
  Time: 下午 11:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>用户展示页面</title>
</head>
<style type="text/css">
    table.gridtable {
        font-family: verdana, arial, sans-serif;
        font-size: 11px;
        color: #333333;
        border-width: 1px;
        border-color: #666666;
        border-collapse: collapse;
    }

    table.gridtable th {
        border-width: 1px;
        padding: 8px;
        border-style: solid;
        border-color: #666666;
        background-color: #dedede;
    }

    table.gridtable td {
        border-width: 1px;
        padding: 8px;
        border-style: solid;
        border-color: #666666;
        background-color: #ffffff;
    }
</style>
<body>
    <div align="center">
        <button onclick='location.href="${pageContext.request.contextPath}/pages/User_Add.jsp"'>新增用户</button>
    </div>

    <div align="left">
        <table class="gridtable">
            <thead>
            <tr>
                <th>
                    <input type="checkbox" id="checkbos1">
                </th>
                <th>用户Id</th>
                <th>用户名称</th>
                <th>用户邮箱地址</th>0
                <th>操作</th>
            </tr>
            </thead>
            <tbody>

            <form id="delForm" method="post" action="">

                <c:forEach items="${list}" var="list">
                    <tr>
                        <th>
                            <input type="checkbox" id="check2" value=""/>
                        </th>
                        <th>${list.id}</th>
                        <th>${list.username}</th>
                        <th>${list.email}</th>
                        <th>
                            <button type="button" onclick=location.href="${pageContext.request.contextPath}/user/findUserById?id=${list.id}">修改</button>
                            <button type="button" onclick=location.href="${pageContext.request.contextPath}/user/deleteUser?id=${list.id}">删除</button>
                        </th>

                </c:forEach>
            </form>
            </tbody>
        </table>
    </div>
</body>
</html>
